import angular from 'angular'

const name = 'base.Server'
const apiPrefix = window.G_CONFIG.api_prefix
angular.module('myContractEditApp')
    .service(name, ["$http", ($http) => {
        return {
            actionGetContractCompanyList({ propertyId }) {
                return $http.get(`${apiPrefix}/contract/get-contract-company-list`, {
                    params: {
                        propertyId
                    }
                })
            },
            updateProduct(data) {
                return $http.post(`${apiPrefix}/contract/update-product`, data)
            }
        }
    }])
export default name
